#ifndef _CAPP_H_
    #define _CAPP_H_

#include <SDL/SDL.h>
#include "CAnimation.h"
#include "CEvent.h"
#include "CEntity.h"
#include "CSurface.h"
#include "Define.h"
#include "CArea.h"
#include "CCamera.h"
class CApp : public CEvent {
    private:
        bool            Running;

        SDL_Surface*    Surf_Display;
        SDL_Surface*    Surf_Test;
    CEntity         Entity1;
    CEntity         Entity2;

    public:
        CApp();

        int OnExecute();

    public:
        bool OnInit();

        void OnEvent(SDL_Event* Event);

            void OnExit();

        void OnLoop();

        void OnRender();

        void OnCleanup();

        void Reset();

        //void SetCell(int ID, int Type);

        //void OnLButtonDown(int mX, int mY);
        void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);
};

#endif
